<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>天猫登录页</title>
    <link rel="stylesheet" href="./css/reset.css" />
    <style>
      .container {
        width: 100%;
        height: 600px;
        background-color: #de0100;
      }

      .container .banner {
        width: 1190px;
        height: 600px;
        margin: 0px auto;
        background: url(images/tmall.png);
      }

      .container .banner .login {
        width: 350px;
        height: 400px;
        background-color: #fff;
        float: right;
        margin-top: 101px;
        padding: 28px 25px;

        /* 解决添加内边距后，盒子的整体高度和宽度都变大 */
        box-sizing: border-box;
      }

      .login-tab {
        font-family: Microsoft YaHei;
        font-weight: 700;
        font-size: 16px;
        color: #000000;

        margin-bottom: 20px;
      }

      .login-tab span {
        font-size: 16px;
        display: inline-block;
        margin-right: 8px;
        padding-bottom: 7px;
      }

      .login-tab span.current {
        border-bottom: 2px solid #000;
      }

      .input-wrap {
        height: 42px;
        /* border:1px solid red; */

        margin-bottom: 20px;

        position: relative;
      }

      .input-wrap input.txt {
        height: 42px;
        width: 100%;
        box-sizing: border-box;
        outline: none;
        border: 1px solid #ddd;

        padding-left: 50px;
      }

      .input-wrap input.user-phone {
        padding-left: 120px;
      }

      .input-wrap input.txt:hover {
        border: 1px solid #de0100;
      }

      .input-wrap i {
        width: 40px;
        height: 40px;
        background-color: #ddd;
        position: absolute;
        left: 1px;
        top: 1px;
        /*背景图片共用的样式*/
        background-position: center;
        background-repeat: no-repeat;
      }

      .input-wrap i.icon-phone {
        background-image: url(images/icon-phone.png);
      }
      .input-wrap i.icon-yzm {
        background-image: url(images/icon-number.png);
      }

      .input-wrap span.send-yzm {
        /* width: 70px; */
        height: 40px;
        display: inline-block;
        /* font-family: Microsoft YaHei; */
        font-size: 14px;
        line-height: 40px;
        color: #666;
        position: absolute;
        right: 10px;
        top: 0px;
        cursor: pointer;
      }

      .input-wrap .select-wrap {
        width: 65px;
        height: 40px;
        /* background-color: #f00; */
        position: absolute;
        left: 50px;
        top: 1px;
      }

      .input-wrap .select-wrap select {
        width: 65px;
        height: 40px;
        border: 0;
        outline: none;
        color: rgba(0, 0, 0, 0);
        background: url(./images/icon-select.png) no-repeat 40px 8px;
      }

      .input-wrap .select-wrap select option {
        color: #000;
      }

      .input-wrap .select-wrap span {
        width: 65px;
        height: 40px;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        /* background-color: #de0100; */
        font-size: 14px;
        line-height: 40px;
        pointer-events: none;
      }

      .input-wrap button {
        width: 100%;
        height: 40px;
        border: 1px solid#de0100;
        background-color: #de0100;
        color: #fff;
        font-size: 16px;
        border-radius: 5px;
      }

      a {
        text-decoration: none;
      }

      .input-wrap a {
        font-size: 14px;
        color: #666;
        text-decoration: none;
        margin-left: 5px;
      }

      .input-wrap a:hover {
        color: #de0100;
      }

      .links {
        text-align: right;
        font-size: 0;
      }

      .input-wrap i.icon-id {
        background-image: url(images/icon-user.png);
      }

      .input-wrap i.icon-pwd {
        background-image: url(images/icon-pwd.png);
      }

      .pwd-login {
        display: none;
      }

      /*.sms-login {
        display: none;
      } */
    </style>
  </head>
  <body>
    <div class="container">
      <div class="banner">
        <div class="login">
          <div class="login-tab">
            <span>密码登录</span>
            <span class="current">短信登录</span>
          </div>
          <div class="login-content">
            <div class="pwd-login">
              <form action="#">
                <!--请入输手机号-->
                <div class="input-wrap">
                  <input type="text" class="txt" placeholder="会员/邮箱/手机号" />
                  <i class="icon-id"></i>
                </div>
                <!--请输入验证码-->
                <div class="input-wrap">
                  <input type="text" class="txt" placeholder="请输入登录密码" />
                  <i class="icon-pwd"></i>
                </div>
                <div class="input-wrap">
                  <button>登录</button>
                </div>
              </form>
            </div>

            <div class="sms-login">
              <form action="#">
                <!--请入输手机号-->
                <div class="input-wrap">
                  <input type="text" class="txt user-phone" placeholder="请输入手机号" />
                  <i class="icon-phone"></i>
                  <div class="select-wrap">
                    <span>+86</span>
                    <select name="" id="">
                      <option value="+86">+86 中国大陆</option>
                      <option value="+853">+853 中国澳门</option>
                      <option value="+886">+886 中国台湾</option>
                      <option value="+82">+82 韩国</option>
                      <option value="+81">+81 日本</option>
                      <option value="+1">+1 美国</option>
                      <option value="+1">+1 加拿大</option>
                      <option value="+44">+44 英国</option>
                      <option value="+61">+61 澳大利亚</option>
                      <option value="+65">86+ 中国大陆</option>
                      <option value="+60">+60 马来西亚</option>
                    </select>
                  </div>
                </div>
                <!--请输入验证码-->
                <div class="input-wrap">
                  <input type="text" class="txt" placeholder="请输入验证码" />
                  <i class="icon-yzm"></i>
                  <span class="send-yzm">发送验证码</span>
                </div>
                <div class="input-wrap">
                  <button>登录</button>
                </div>
                <div class="input-wrap links">
                  <a href="#">忘记密码</a>
                  <a href="#">忘记用户名</a>
                  <a href="#">免费注册</a>
                </div>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>
